
var OrderHistory = new function () {
    this.Search = function (sortData) {
        var page = $("#orderhistory-selectedpage").val();
        var requestData = {};
        requestData['pageIndex'] = page;
        for (var sortKey in sortData) {
            requestData[sortKey] = sortData[sortKey];
        }
        $.ajax({
            url: "/Order/Search",
            cache: false,
            data: requestData,
            dataType: "html",
            success: function (data) {
                var datas = data.split('||||||||');
                $("#orderhistory-content").html(datas[0]);
                $("#orderhistory-paging").html(datas[1]);
            }
        });
    };
};
